package com.yzh.croom.service.impl;

import com.yzh.croom.mapper.VRoomMapper;
import com.yzh.croom.model.domain.VRoom;
import com.yzh.croom.service.VroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VroomServiceImpl implements VroomService {
    @Autowired
    private VRoomMapper vRoomMapper;
    @Override
    public List<VRoom> getVroom() {
        return vRoomMapper.getVroom();
    }

    @Override
    public List<VRoom> getVroomById(String roomId) {
        return vRoomMapper.getVroomById(roomId);
    }

    @Override
    public int addVroom(VRoom vRoom) {
        return vRoomMapper.addVroom(vRoom);
    }

    @Override
    public List<VRoom> getVRoomGroupById() {
        return vRoomMapper.getVRoomGroupById();
    }

    @Override
    public List<VRoom> getVroomWeekGroupById(String roomId) {
        return vRoomMapper.getVroomWeekGroupById(roomId);
    }
}
